package com.wanmait.wanmarecruit.enumeration;

public enum ErrorEnum {
    LOGIN_FAILED(10000,"登录失败"),  //登录失败
    TOKEN_FAILED(10001,"token验证失败"), //token验证失败
    CODE_ERROR(10002,"验证码错误"),
    CODE_INVALID(10003,"验证码失效"),
    UNAUTHORIZED(10004,"没有权限"),
    NAME_EXIST(10005,"名字已存在");

    private Integer code;
    private String info;
    private ErrorEnum(Integer code,String info)
    {
        this.code=code;
        this.info=info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
